<div class="modal-header bg-primary" >
    <button type="button" class="close" ng-click="cancel()">×</button>
    <i class="fa fa-inbox"></i><span class="label label-tag">评论知识库</span>
</div>
<div class="modal-body">
  <tabset class="tabbable">
    <tab heading="知识库详情">
      <div>
        <div class="well well-lg"><br/>
          <div class="row form-group">
            <label class="col-md-2 control-label" for="title">标题:</label>
            <div class="col-md-4">
              <input  id="title" name="title" class="form-control"  ng-model="entity.title" placeholder="标题"  disabled="true"/>
            </div>
            <!-- <label class="col-md-2 control-label" for="version">版本:</label>
            <div class="col-md-4" style="float:right">
              <input  class="form-control" id="vision" name="version" ng-model="entity.vision2"   placeholder="选择版本" disabled="true"/>
              <input  class="form-control" id="vision" name="version" type="hidden" ng-model="entity.vision"   placeholder="选择版本" disabled="true"/>
            </div>  -->
            
        <label class="col-md-2 control-label" for="vision">版本:</label>
        <div class="col-md-4">
          <input  class="form-control" id="vision" name="version" ng-model="entity.vision2"   placeholder="选择版本" disabled="true"/>
          <input  class="form-control" id="vision" name="version" type="hidden" ng-model="entity.vision"   placeholder="选择版本" disabled="true"/>
        </div> 
    
          </div>
          <div class="row form-group">
            <label class="col-md-2 control-label" for="keys">关键字:</label>
            <div class="col-md-4">
              <input  class="form-control" id="keys" name="keys" class="form-control" ng-model="entity.keys" placeholder="关键字"  disabled="true"/>
            </div> 
            <label class="col-md-2 control-label" for="type">分类:</label>
            <div class="col-md-4">
              <input  id="type" name="type" class="form-control"  ng-model="entity.typeName" placeholder="分类"disabled="true" > <!-- ng-click="doOnLoad('type');" data-toggle="modal" data-target="#typeboxbox" -->
            </div> 
          </div>
          <div class="row form-group">
            <label class="col-md-2 control-label" for="range">使用范围:</label>
            <div class="col-md-4">
              <select  id="range" class="form-control"   disabled="disabled"ng-model="entity.range"  data-placeholder="选择使用范围">
                <option ng-repeat="r in ranges" value="{{r.id}}">{{r.name}}</option>
              </select>   
            </div> 
            <label class="col-md-2 control-label" for="number">知识库编号:</label>
            <div class="col-md-4" style="z-indx:1px;">
              <input  id="number" name="number" class="form-control"  ng-model="entity.number" placeholder="知识库编号" disabled="true"> 
            </div> 
          </div>            
          <div class="row form-group">
            <label class="col-md-3 control-label" for="content">知识库内容:</label>
            <div class="col-md-8" style="z-indx:1px;"> 
              <textarea ckeditor  ng-model="entity.content" class="form-control" disabled="true"></textarea>
            </div>             
          </div>
        </div> <!-- class="well well-lg" -->
      </div><!-- class="panel" end -->
      <div class="row form-group" ng-class="{'has-error': showError('file')}">
        <div class="col-md-8">
          <label >
            <span class="lbl"  style="margin-left:12px">附件</span>
            <a  href="{{solutionDowpath}}/{{entity.id}}" tooltip="下载">
            <!-- <img src="{{entity.filePic}}" > -->
            {{entity.fileName}}
            </a>
          </label>
        </div>
      </div>            
    </tab>
    <tab heading="查看评论" >
      <div class="panel"> 
        <div class="well well-lg"> <br />
          <div class="row form-group">
            <div ng-repeat="s in comments">
              <div class="col-md-8" style="z-indx:1px;">
                评论人：{{s.name}} |     发表于：{{s.time}}   |评分：{{s.score}}
                <hr style="height: 1px; border:none; border-top:1px dashed #CCCCCC;" /> 
                评论： {{s.content}} 
                <hr style="height: 1px; border:none; border-top:1px dashed black;" /> 
              </div> 
            </div>
          </div>
        </div> <!-- class="well well-lg" -->
      </div><!-- class="panel" end -->
    </tab>
    <tab heading="评论">
      <div class="panel"> 
        <div class="well well-lg"> <br />
          <div class="row form-group" ng-show="showCommentScore">
            <label class="col-md-2 control-label" for="score">评分:</label>
            <div class="col-md-8" style="z-indx:1px;line-height:30px;;">
              <rating ng-model="score" max="10" state-on="'fa fa-heart text-red text-extra-large margin-right-5'" state-off="'fa fa-heart-o text-large margin-right-5'"></rating>
            </div>
          </div>
          <div class="row form-group">
            <label class="col-md-2 control-label" for="reviewcontent">评论:</label>
            <div class="col-md-8" style="z-indx:1px;">
              <textarea ckeditor id="reviewcontent"  ng-model="reviewcontent" class="form-control"></textarea>
            </div> 
          </div>
          <div class="panel-footer text-center">
            <a  ng-click="saveComment(reviewcontent,score);cancel();" class="btn btn-success" id="sub1" value="发表">发表</a>
          </div>
        </div> <!-- class="well well-lg" -->
      </div><!-- class="panel" end -->
    </tab>
  </tabset>
</div>
